package com.punai.system.bo.ep;


import cn.hutool.core.util.StrUtil;

import java.util.ArrayList;
import java.util.List;

public class DepartmentOfWeChat {
    private String id; //部门Id
    private String name; //部门名称
    private String name_en; //英文名称
    private List<String> department_leader = new ArrayList<>();//部门负责人的UserID
    private String parentid;//父部门id
    private String order;//在父部门中次序

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        if(StrUtil.isEmpty(name)){
            return "weChatComDep"+this.getId();
        }
        return name;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public String getName_en() {
        if (StrUtil.isEmpty(name_en)) {
            return "weChatComDep" + this.getId();
        }
        return name_en;
    }

    public void setDepartment_leader(List<String> department_leader) {
        this.department_leader = department_leader;
    }

    public List<String> getDepartment_leader() {
        return department_leader;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getParentid() {
        return parentid;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getOrder() {
        return order;
    }

}
